package com.tps.cloud.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tps.cloud.entity.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户和角色关联表(SystemUserRole)
 */
@TableName("system_user")
@Data
@EqualsAndHashCode(callSuper = true)
public class SystemUserRole extends TenantEntity {

    private static final long serialVersionUID = -56990064264317914L;
    /**
     * 关联id
     */
    @TableId
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 角色id
     */
    private Long roleId;

}

